export function getNextDay(time) {
  let date = +new Date(time)
  return formatTime(date + 3600 * 1000 * 24)
}

export function formatTime(time) {
  let date = new Date(time)
  let year = date.getFullYear()
  let month = (date.getMonth() + 1 + '').padStart(2, '0')
  let day = (date.getDate() + '').padStart(2, '0')
  return `${year}-${month}-${day}`
}
